import {SET_IDCARD_IMG,SET_INSURANCE_IMG,SET_CAROUSEL_IMG} from "../actions/actionsTypes"

export default function uploadPageReducer(state = {}, action) {
		switch (action.type) {
		case SET_IDCARD_IMG:			
			return Object.assign({}, state, {idCardImg: action.data});
		case SET_INSURANCE_IMG:
			return Object.assign({}, state, {insuranceImg: action.data});
		case SET_CAROUSEL_IMG:
		return Object.assign({}, state, {carouselImg: action.data});
		default:
			return state;
	}
}
